home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmQRefresh
- Caption = "Refresh Examples"
- ClientHeight = 4020
- ClientLeft = 1575
- ClientTop = 1560
- ClientWidth = 4755
- Height = 4425
- Left = 1515
- LinkTopic = "Form1"
- ScaleHeight = 4020
- ScaleWidth = 4755
- Top = 1215
- Width = 4875
- Begin CommandButton cmdQRefresh
- Caption = "Choice &B"
- Height = 495
- Index = 1
- Left = 1560
- TabIndex = 1
- Top = 1200
- Width = 1215
- End
- Begin CommandButton cmdQRefresh
- Caption = "Choice &D"
- Height = 495
- Index = 3
- Left = 1560
- TabIndex = 3
- Top = 2400
- Width = 1215
- End
- Begin CommandButton cmdQRefresh
- Caption = "Choice &C"
- Height = 495
- Index = 2
- Left = 1560
- TabIndex = 2
- Top = 1800
- Width = 1215
- End
- Begin CommandButton cmdQRefresh
- Caption = "Choice &A"
- Height = 495
- Index = 0
- Left = 1560
- TabIndex = 0
- Top = 600
- Width = 1215
- End
- Begin Label Label1
- Caption = "Pick a Choice. Then resize the form. This will test the refresh method."
- Height = 375
- Left = 240
- TabIndex = 5
- Top = 120
- Width = 4215
- End
- Begin Label lblChoise
- Caption = "Choice"
- Height = 255
- Left = 1560
- TabIndex = 4
- Top = 3240
- Width = 1335
- End
- Option Explicit
- Dim choice As String
- Sub CmdQRefresh_Click (index As Integer)
- Select Case index
- Case 0 'choice A
- choice = "A"
- lblChoise = "Choice A"
- Case 1 'choice B
- choice = "B"
- lblChoise = "Choice B"
- Case 2 'choice C
- choice = "C"
- lblChoise = "Choice C"
- Case 3 'choice D
- choice = "D"
- lblChoise = "Choice D"
- End Select
- End Sub
- Sub Form_Paint ()
- Select Case choice
- Case "A"
- Me.Refresh
- Me.AutoRedraw = True
- Case "B"
- Me.AutoRedraw = True
- Me.Refresh
- Case "C"
- Me.Refresh
- Me.AutoRedraw = False
- Case "D"
- Me.AutoRedraw = False
- Me.Refresh
- End Select
- End Sub
-